package cn.com.dhc.danlu.activity.message;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import cn.com.dhc.danlu.R;
import cn.com.dhc.danlu.activity.BaseActivity;

/**
 * @author wuhaiyang
 *         其他消息详情界面
 */
public class OtherDetailMsgActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_detail_othermsg);

        LinearLayout llytBack = (LinearLayout) findViewById(R.id.llytBack);
        TextView tvDate = (TextView) findViewById(R.id.tv_date);
        TextView tvContent = (TextView) findViewById(R.id.tv_content);

        llytBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        String time = getIntent().getStringExtra("time");
        String content = getIntent().getStringExtra("content");

        tvDate.setText(time);
        tvContent.setText(content);
    }

    @Override
    protected String getActivityTitle() {
        return null;
    }
}